import { ActionDesc, PagesKey } from '@/global/constant'
import { IContentConfig, TableItemType } from '@/components/page-content/type'

const activityListContent: IContentConfig = {
  pageKey: PagesKey.ActivityList,
  tableConfig: {
    // bordered: true
    size: 'small',
    scroll: {
      // x: 1980
    },
    rowKey: 'activityId'
  },
  isShowRowSelection: false,
  isShowAddBtn: true,
  isShowBatchBtn: false,
  isShowMoreAction: true,
  moreActions: [
    { key: ActionDesc.Edit, label: '编辑' },
    { key: ActionDesc.Delete, label: '删除' }
  ],
  tableItems: [
    {
      type: TableItemType.Column,
      title: '活动名称',
      dataIndex: 'activityName'
    },
    {
      type: TableItemType.Column,
      title: '活动开始时间',
      dataIndex: 'activityBeginTime'
    },
    {
      type: TableItemType.Column,
      title: '活动结束时间',
      dataIndex: 'activityEndTime'
    },
    {
      type: TableItemType.Column,
      title: '创建时间',
      dataIndex: 'createTime',
      width: 160
    },
    {
      type: TableItemType.Column,
      title: '更新时间',
      dataIndex: 'updateTime',
      width: 160
    },
    {
      type: TableItemType.Column,
      title: '更新人',
      dataIndex: 'updateBy'
    },
    {
      type: TableItemType.Column,
      title: '创建人',
      dataIndex: 'createBy'
    }
  ]
}

export default activityListContent
